<?php
defined('IN_IXDCW') or exit('Access Denied');
include tpl('header');
show_menu($menus);
?>
	<form action="?">
		<div class="tt">合作商家搜索</div>
		<input type="hidden" name="moduleid" value="<?php echo $moduleid;?>"/>
		<input type="hidden" name="file" value="<?php echo $file;?>"/>
		<input type="hidden" name="action" value="<?php echo $action;?>"/>
		<table cellpadding="2" cellspacing="1" class="tb">
			<tr>
				<td>&nbsp;
					<?php echo $fields_select;?>&nbsp;
					<input type="text" size="30" name="kw" value="<?php echo $kw;?>" title="关键词"/>&nbsp;
					&nbsp;
					分页数量:
					<input type="text" name="psize" value="<?php echo $pagesize;?>" size="2" class="t_c" title="条/页"/>
					<input type="submit" value="搜 索" class="btn"/>&nbsp;
					<input type="button" value="重 置" class="btn" onclick="window.location='?moduleid=<?php echo $moduleid;?>&file=<?php echo $file;?>&action=<?php echo $action;?>';"/>
				</td>
			</tr>
			<tr>
				<td>&nbsp;
					商户类型 :
					[未验证:<input type="radio" name="verify" <?php if ($verify==0) {?>checked="checked" <?php } ?> style="vertical-align: bottom;" value="0"/>]
					[已验证:<input type="radio" name="verify" <?php if ($verify==1) {?>checked="checked" <?php } ?> style="vertical-align: bottom;" value="1"/>]
					[全部:<input type="radio" name="verify" <?php if ($verify==2) {?>checked="checked" <?php } ?> style="vertical-align: bottom;" value="2"/>]
				</td>
			</tr>
		</table>
	</form>

	<div class="tt">合作商家验证/取消:</div>
	<form action="?">
	<input type="hidden" name="moduleid" value="<?php echo $moduleid;?>"/>
	<input type="hidden" name="file" value="<?php echo $file;?>"/>
	<input type="hidden" name="action" value="verify"/>
	<table cellpadding="2" cellspacing="1" class="tb">
		<tr>
			<td>&nbsp;
				用户名 :
				&nbsp;
				<input type="text" name="post[username]" value="" size="15" title="用户名"/>
				<input type="submit" value="添加验证" class="btn"/>&nbsp;
			</td>
		</tr>
	</table>
	</form>
	<form action="?">
		<input type="hidden" name="moduleid" value="<?php echo $moduleid;?>"/>
		<input type="hidden" name="file" value="<?php echo $file;?>"/>
		<input type="hidden" name="action" value="unverify"/>
		<table cellpadding="2" cellspacing="1" class="tb">
			<tr>
				<td>&nbsp;
					用户名 :
					&nbsp;
					<input type="text" name="post[username]" value="" size="15" class="t_c" title="用户名"/>
					<input type="submit" value="取消验证" class="btn"/>&nbsp;
				</td>
			</tr>
		</table>
	</form>
	<form method="post">
		<div class="tt">合作商家管理</div>
		<table cellpadding="2" cellspacing="1" class="tb">
			<tr>
				<th width="25"><input type="checkbox" onclick="checkall(this.form);"/></th>
				<th width="25"></th>
				<th>会员ID</th>
				<th>会员名</th>
				<th>会员组</th>
				<th>验证时间</th>
			</tr>
			<?php foreach ($lists as $k => $v) { ?>
				<tr onmouseover="this.className='on';" onmouseout="this.className='';" align="center">
					<td><input type="checkbox" name="userid[]" value="<?php echo $v['userid'];?>"/></td>
					<td>
						<span
							style="
							display: block;
							width: 15px;
							height: 15px;
							background:<?php if ($v['verify']) { echo '#0f0';}else{ echo '#f00';} ?>;">&nbsp;</span></td>
					<td><?php echo $v['userid'];?></td>
					<td><a href="javascript:_user('<?php echo $v['username'];?>');"><?php echo $v['username'];?></a></td>
					<td><?php echo $GROUP[$v['groupid']]['groupname'];?></td>
					<td><?php echo date('Y-m-d H:i', $v['verified_time'])?></td>
				</tr>
			<?php }?>
		</table>
	</form>
	<div class="pages"><?php echo $pn->render(true);?></br>
	<span>共<?php echo $pn->getRecords();?>条/<?php echo $pn->getPages();?>页&nbsp;
		<?php if ($pn->getPages()>1){;?>
		到第</span><input type="text" name="page-num-input" id="xd_page_jump"/><span>页</span>
		<button type="submit" onclick="xdChangeAndLocation('page', $('#xd_page_jump').val())">确定</button>
		<?php };?></div>
	<script type="text/javascript">Menuon(0);</script>
<?php include tpl('footer'); ?>